<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>公共的模板</title>
</head>
<body>
    <div th:fragment="replace">
        <h1>使用replace</h1>
    </div>
    <div th:fragment="include">
        <h1>include</h1>
    </div>
</body>
</html>